#if !defined(AFX_GLOBALS_H__INCLUDED_)
#define AFX_GLOBALS_H__INCLUDED_
#pragma once   // speed up compiling with MSVC++, file will only be read once
#include "logging.h"
#include <fstream>

extern void WriteRegistryString(HKEY key, LPCTSTR str, char *value, char *data);
extern void GetRegistryString(HKEY key, LPCTSTR str, char *value, LPBYTE szBuffer,  DWORD dwBuflen);
extern void WriteInt(LPCTSTR str, int value);
extern void WriteString(LPCTSTR str, LPCTSTR value);
extern UINT GetInt(LPCTSTR str, int value);
extern CString GetString(LPCTSTR str, LPCTSTR value);
extern bool GetFiles(HWND owner, OPENFILENAME *ofn, LPSTR Title, LPSTR Title2000, LPCTSTR Filter, LPCTSTR defaultdir, char *PathName, int PathNameSize, char *FileName, int FileNameSize, int Flags, char *defaultext, int defindex = 1);
extern bool SaveFiles(HWND owner, OPENFILENAME *ofn, LPSTR Title, LPSTR Title2000, LPCTSTR Filter, LPCTSTR defaultdir, char *PathName, int PathNameSize, char *FileName, int FileNameSize, int Flags, char *defaultext, int defindex = 1);
extern double RandomNumber( double minnumber, double maxnumber );
extern BOOL IsCurrentUserLocalAdministrator();
extern int FileExists(char *file, bool create);
extern int GetOSVersion();
extern void DoGetLastError(CString *lpMsgBuf);
extern void GetProgramRunPath(char* sProgramPath);
extern BOOL GetOSDisplayString( LPTSTR pszOS);
extern void GetVersion(CString *cFilePath, int stringsize);
extern void GetFileVersionString(CString *cFilePath);

extern	ofstream *out;
extern	CLogging *logger;
extern void memory_status();
//extern	LONGLONG llTotalBytes;
extern	POINT pt, datapt;

#endif
#if !defined(AFX_GLOBALS_H__INCLUDED_)
#define AFX_GLOBALS_H__INCLUDED_
#pragma once   // speed up compiling with MSVC++, file will only be read once

#include "logging.h"
#include <fstream>

extern void WriteInt(LPCTSTR str, int value);
extern void WriteString(LPCTSTR str, LPCTSTR value);
extern __stdcall UINT GetInt(LPCTSTR str, int value);
extern CString GetString(LPCTSTR str, LPCTSTR value);
extern bool GetFiles(HWND owner, OPENFILENAME *ofn, LPSTR Title, LPSTR Title2000, LPCTSTR Filter, LPCTSTR defaultdir, char *PathName, int PathNameSize, char *FileName, int FileNameSize, int Flags, char *defaultext, int defindex = 1);
extern bool SaveFiles(HWND owner, OPENFILENAME *ofn, LPSTR Title, LPSTR Title2000, LPCTSTR Filter, LPCTSTR defaultdir, char *PathName, int PathNameSize, char *FileName, int FileNameSize, int Flags, char *defaultext, int defindex = 1);
extern double RandomNumber( double minnumber, double maxnumber );
extern int FileExists(char *file, bool create);
extern int GetOSVersion();
extern	ofstream *out;
extern	CLogging *logger;
extern void memory_status();
//extern	LONGLONG llTotalBytes;
extern	POINT pt, datapt;

#endif
